import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";

@Entity("short-url")
export class ShortUrl {
    
    @PrimaryGeneratedColumn()
    id: number;

    @Column({
        length: 10,
        comment: '压缩码'
    })
    code: string;

    @Column({
        comment: '状态, 0 未使用、1 已使用'
    })
    status: number;
}
